/**
 * 展厅相关请求
 * */
import Urls from '../ApiUrls';
import ApiBase from './ApiBase';

class ApiStand {
  saveStands(params) {
    return ApiBase.send(Urls.URL_STANDS_SAVE, params);
  }

  saveHtmlStands(params) {
    return ApiBase.send(Urls.URL_HTML_STANDS_SAVE, params)
  }

  updateStands(params) {
    return ApiBase.send(Urls.URL_STANDS_UPDATE, params);
  }

  updateHtmlStands(params) {
    return ApiBase.send(Urls.URL_HTML_STANDS_UPDATE, params);
  }

  queryStandsList(params) {
    return ApiBase.send(Urls.URL_STANDS_QUERY_LIST, params);
  }

  queryParentShowroomList(params) {
    return ApiBase.send(Urls.URL_STANDS_QUERY_PARENT_LIST, params);
  }

  removeParentShowrooms(params) {
    return ApiBase.send(Urls.URL_STANDS_REMOVE_PARENTS, params);
  }

  queryChildShowroomList(params) {
    return ApiBase.send(Urls.URL_STANDS_QUERY_CHILD_LIST, params);
  }

  removeChildShowrooms(params) {
    return ApiBase.send(Urls.URL_STANDS_REMOVE_CHILDREN, params);
  }

  deleteStands(params) {
    return ApiBase.send(Urls.URL_STANDS_DELETE, params);
  }

  publishStands(params) {
    return ApiBase.send(Urls.URL_STANDS_PUBLISH, params);
  }

  offlineStands(params) {
    return ApiBase.send(Urls.URL_STANDS_OFFLINE, params);
  }

  queryStandsById(params) {
    return ApiBase.send(Urls.URL_STANDS_QUERY_BY_ID, params);
  }

  deleteBooth(params) {
    return ApiBase.send(Urls.URL_BOOTH_DELETE, params);
  }

  saveBooth(params) {
    return ApiBase.send(Urls.URL_BOOTH_SAVE, params);
  }

  updateBooth(params) {
    return ApiBase.send(Urls.URL_BOOTH_UPDATE, params);
  }

  queryBoothById(params) {
    return ApiBase.send(Urls.URL_BOOTH_QUERY_BY_ID, params);
  }

  queryBoothList(params) {
    return ApiBase.send(Urls.URL_BOOTH_QUERY_LIST_BY_SHOWROOM, params);
  }

  queryProductList(params) {
    return ApiBase.send(Urls.URL_COLLECTION_PRODUCT_QUERY_LIST, params);
  }

  queryAddedProductList(params) {
    return ApiBase.send(Urls.URL_COLLECTION_PRODUCT_QUERY_ADDED_LIST, params);
  }

  queryAllAddedProductList(params) {
    return ApiBase.send(Urls.URL_COLLECTION_PRODUCT_QUERY_ALL_ADDED_LIST, params);
  }

  queryBoothItemList(params) {
    return ApiBase.send(Urls.URL_BOOTH_ITEM_QUERY_LIST, params);
  }

  queryBoothItemById(params) {
    return ApiBase.send(Urls.URL_BOOTH_ITEM_QUERY_BY_ID, params);
  }

  deleteBoothItem(params) {
    return ApiBase.send(Urls.URL_BOOTH_ITEM_DELETE, params);
  }

  getBoothItemCount(params) {
    return ApiBase.send(Urls.URL_BOOTH_ITEM_COUNT, params);
  }

  saveBoothItem(params) {
    return ApiBase.send(Urls.URL_BOOTH_ITEM_SAVE, params);
  }

  updateBoothItem(params) {
    return ApiBase.send(Urls.URL_BOOTH_ITEM_UPDATE, params);
  }

  updateShowroomOfBoothItem(params) {
    return ApiBase.send(Urls.URL_BOOTH_ITEM_UPDATE_SHOWROOM, params);
  }

  updateHtmlOfBoothItem(params) {
    return ApiBase.send(Urls.URL_BOOTH_ITEM_UPDATE_HTML, params);
  }

  saveOrUpdateCollection(params) {
    return ApiBase.send(Urls.URL_COLLECTION_SAVE_OR_UPDATE, params);
  }

  addProducts(params) {
    return ApiBase.send(Urls.URL_COLLECTION_PRODUCT_ADD_PRODUCTS, params);
  }

  modifyProduct(params) {
    return ApiBase.send(Urls.URL_COLLECTION_PRODUCT_MODIFY_PRODUCT, params);
  }

  saveBatchSort(params) {
    return ApiBase.send(Urls.URL_COLLECTION_PRODUCT_BATCH_SEQUENCE, params);
  }

  deleteProduct(params) {
    return ApiBase.send(Urls.URL_COLLECTION_PRODUCT_DELETE_PRODUCT, params);
  }

  queryCollectionById(params) {
    return ApiBase.send(Urls.URL_COLLECTION_QUERY_BY_ID, params);
  }

  savePageMetaInfos(params) {
    return ApiBase.send(Urls.URL_SAVE_STANDS_PAGE_META, params)
  }

  previewStand(url,params) {
    return ApiBase.send(url, params)
  }
  publishStandPage(url,params) {
    return ApiBase.send(url, params)
  }

  onlineBooth(params) {
    return ApiBase.send(Urls.URL_BOOTH_ONLINE, params);
  }

  offlineBooth(params) {
    return ApiBase.send(Urls.URL_BOOTH_OFFLINE, params);
  }

  saveOrUpdateHtmlPage(params) {
    return ApiBase.send(Urls.URL_HTML_PAGE_SAVE_OR_UPDATE, params)
  }

  getReturnFilters() {
    return ApiBase.send(Urls.URL_GET_RETURN_FILTERS)
  }
}

export default ApiStand;
